'use strict'

module.exports = function (sequelize, DataTypes) {
  const User = sequelize.define(
    'user',
    {
      id: {
        type: DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true
      },
      name: DataTypes.STRING,
      slack_id: DataTypes.STRING,
      environment_hash: {
        type: DataTypes.STRING,
        defaultValue: DataTypes.UUIDV4
      }
    },
    {
      underscored: false
    }
  )
  return User
}
